feat: 知识库筛选器 UI 优化及 All Tags 深色模式适配#24
Open
shaocc1234 wants to merge 5 commits intoJamailar:mainfrom
Open
Conversation
1. desktop/electron/main.ts:
- persistStructuredKnowledgeNote() 保存笔记时写入 captureKind 字段,
使前端能正确区分视频/图文笔记
2. desktop/src/pages/Knowledge.tsx:
- 卡片 kind 映射增加 note.hasVideo 兜底,兼容旧笔记
- 新增 all-image / all-video 聚合快捷筛选器(图文/视频跨平台分类)
- 修复「全部」计数来源错误
- 搜索防抖从 180ms 调整为 500ms
- 新增「仅图文」「仅视频」跨平台聚合筛选器(Checkbox 形态,与平台按钮风格区分) - 移除聚合筛选器无意义的计数 badge - All Tags 按钮及标签项改用设计 token(bg-surface-*),替代硬编码 bg-black/*,修复深色模式适配 - 全部标签抽屉容器及内部元素深色模式适配
Migrate the RedBox plugin's Xiaohongshu blogger-note workflow toward the same direct API collection path that already works in social-media-copilot. The capture flow now defaults to API mode, keeps a fallback tab mode, moves collection controls into the side panel, adds progress/pause/cancel state, and trims noisy debug output while preserving actionable logs. Constraint: Must preserve the existing RedBox extension architecture and avoid new build dependencies Rejected: Keep tab-per-note capture as the default path | too slow for blogger batch collection Rejected: Re-implement the request stack from memory | diverged from the proven social-media-copilot runtime behavior Confidence: medium Scope-risk: moderate Reversibility: clean Directive: Xiaohongshu API signing depends on page-world globals and the bundled md5 runtime; verify both before changing the API path again Tested: node --check for Plugin/background.js and Plugin/sidepanel.js; manual API-mode collection on a Xiaohongshu blogger page; plugin packaging script run Not-tested: Traditional tab mode end-to-end after the side panel redesign
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动概述
1. 知识库类型筛选器 UI 优化
2. All Tags 深色模式适配
3. 代码清理